﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace EFCore.Models;

[Table("InlethouseLine")]
public partial class InlethouseLine
{
    [Key]
    [Column("Id_InlethouseLine")]
    public Guid IdInlethouseLine { get; set; }

    public string InlethouseLineCode { get; set; } = null!;

    public DateTime CreatTime { get; set; }

    public int Long { get; set; }

    public int Wide { get; set; }

    [Column("high")]
    public int High { get; set; }

    /// <summary>
    /// 入口/出口
    /// </summary>
    public string Type { get; set; } = null!;

    /// <summary>
    /// 是否使能
    /// </summary>
    public bool IsEnable { get; set; }

    /// <summary>
    /// 排
    /// </summary>
    public int Xaxis { get; set; }

    /// <summary>
    /// 高
    /// </summary>
    public int Yaxis { get; set; }

    /// <summary>
    /// 列
    /// </summary>
    public int Zaxis { get; set; }

    [Column("TheInlethouseId_Inlethouse")]
    public Guid TheInlethouseIdInlethouse { get; set; }

    [InverseProperty("IdInlethouseLineNavigation")]
    public virtual ICollection<Box> Boxes { get; set; } = new List<Box>();

    [ForeignKey("TheInlethouseIdInlethouse")]
    [InverseProperty("InlethouseLines")]
    public virtual Inlethouse TheInlethouseIdInlethouseNavigation { get; set; } = null!;
}
